public class Dogs {
    public String name;//名字
    public String color;//颜色
    //狗的行为
    public void barks(){
        System.out.println("汪汪汪~~~");
    }
    public void action(){
        System.out.println("摇尾巴~~~");
    }

    public static void main(String[] args) {
        Dogs dog1 = new Dogs();
        //int a = 10
        Dogs dog2 = new Dogs();
        //int[] array = new int[];
        dog1.name = "阿黄";
        dog2.name = "赛虎";
        dog1.color = "黑黄";
        dog2.color = "棕色";
        System.out.println(dog1.name);
        dog1.barks();
        System.out.println(dog2.name);
        dog2.action();
    }
}
